import { createApp } from "vue";
// import "./style.css";
import router from "./router";
import App from "./App.vue";
import SvgIcon from "@/components/SvgIcon";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import "@/assets/less/reset.less";
import "@/assets/less/custom.less";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import "@/mockJs/index";
const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
// 使用element-plus 并且设置全局的大小
app.component("svg-icon", SvgIcon);
app.use(ElementPlus);
app.use(router);

app.mount("#app");
